import { Hurt } from "../class/Hurt";
import { Role } from "../class/Role";
import { Eat } from "../methods/吃";
/**
 * 马红俊
 */
export class ZhuNengChi extends Role {
    static roleName: string = "猪能吃";
    static roleDescription = "天蓬元帅养的猪，学会了一点天蓬元帅的能力。每次收到伤害，都可以回复自身 5% 以损失 HP。";
    protected MAXHP: number = 15000;
    protected HP: number = 15000;
    protected PD: number = 500;
    protected MD: number = 500;
    protected PA: number = 1000;
    protected MA: number = 1000;
    onHurt(role: Role, hurt: Hurt) {
        const _hurt = super.onHurt(role, hurt);
        this.setHP(this.getLossHP() * 0.05)
        return _hurt;
    }
    static methods = [Eat]

}